package com.trolls.server;

import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Scanner;

public class FileFactory {

	public static ArrayList<String> getLines(String filePath) throws FileNotFoundException {

		ArrayList<String> list = new ArrayList<String>();
		File fichier = new File(filePath);

		Scanner scanner = new Scanner(fichier);
		while (scanner.hasNextLine()) {
			list.add(scanner.nextLine());
		}
		scanner.close();

		return list;
	}
}